package com.redhat.redwork.widget.dropdown;

import java.util.Map;

/**
 * load data by dataModel name for dropdown
 * 
 * @author Justin Yip
 * 
 */
public interface DropdownService {

	/**
	 * 
	 * @param dataModel
	 *            data model name defined in spring config
	 * @param parentValue
	 *            the selected value of parent dropdown, or null if the dropdown
	 *            is standalone
	 * @param params
	 *            other parameters
	 * @return the dropdown data
	 */
	Map<String, String> loadDropdownData(String dataModel, String parentValue,
			Map<String, String> params);
}
